const parentCode = "standardManagement";
export default [
  {
    path: "/standardManagement",
    meta: {
      title: "标准管理",
      code: parentCode,
    },
    component: (resolve) => require(["@/views/standardManagement"], resolve),
    children: [
      {
        path: "/",
        redirect: "acountStandard",
      },
      {
        path: "acountStandard",
        meta: {
          title: "台账标准",
          parentCode: parentCode,
          code: "acountStandard",
        },
        component: (resolve) =>
          require(["@/views/standardManagement/acountStandard"], resolve),
        children: [
          {
            path: "/",
            redirect: "classStandard",
          },
          {
            path: "classStandard",
            name: "classStandard",
            meta: {
              title: "分类标准",
              parentCode: parentCode,
              code: "acountStandard",
            },
            component: (resolve) =>
              require([
                "@/views/standardManagement/acountStandard/classStandard",
              ], resolve),
          },
          {
            path: "baseParameter",
            name: "baseParameter",
            meta: {
              title: "基本参数组",
              parentCode: parentCode,
              code: "acountStandard",
            },
            component: (resolve) =>
              require([
                "@/views/standardManagement/acountStandard/baseParameter",
              ], resolve),
          },
        ],
      },
      {
        path: "operateStandard",
        meta: {
          title: "作业标准",
          parentCode: parentCode,
          code: "operateStandard",
        },
        component: (resolve) =>
          require(["@/views/standardManagement/operateStandard"], resolve),
        children: [
          {
            path: "/",
            redirect: "normalMaintenanceStandard",
          },
          {
            path: "normalMaintenanceStandard",
            name: "normalMaintenanceStandard",
            meta: {
              title: "正常维护标准",
              parentCode: parentCode,
              code: "operateStandard",
            },
            component: (resolve) =>
              require([
                "@/views/standardManagement/operateStandard/normalMaintenanceStandard",
              ], resolve),
          },
          {
            path: "overhaulStandard",
            name: "overhaulStandard",
            meta: {
              title: "大修标准",
              parentCode: parentCode,
              code: "operateStandard",
            },
            component: (resolve) =>
              require([
                "@/views/standardManagement/operateStandard/overhaulStandard",
              ], resolve),
          },
          {
            path: "maintenanceStandard",
            name: "maintenanceStandard",
            meta: {
              title: "计划性检修标准",
              parentCode: parentCode,
              code: "operateStandard",
            },
            component: (resolve) =>
              require([
                "@/views/standardManagement/operateStandard/maintenanceStandard",
              ], resolve),
          },
          {
            path: "experimentalStandard",
            name: "experimentalStandard",
            meta: {
              title: "试验标准",
              parentCode: parentCode,
              code: "operateStandard",
            },
            component: (resolve) =>
              require([
                "@/views/standardManagement/operateStandard/experimentalStandard",
              ], resolve),
          },
        ],
      },
      {
        path: "defectLibrary",
        name: "defectLibrary",
        meta: {
          title: "缺陷库",
          parentCode: parentCode,
          code: "defectLibrary",
        },
        component: (resolve) =>
          require(["@/views/standardManagement/defectLibrary"], resolve),
      },
      {
        path: "patrolStandard",
        name: "patrolStandard",
        meta: {
          title: "巡视标准",
          parentCode: parentCode,
          code: "patrolStandard",
        },
        component: (resolve) =>
          require(["@/views/standardManagement/patrolStandard"], resolve),
      },
      {
        path: "ratingStandard",
        name: "ratingStandard",
        meta: {
          title: "评级标准",
          parentCode: parentCode,
          code: "acouratingStandardntManage",
        },
        component: (resolve) =>
          require(["@/views/standardManagement/ratingStandard"], resolve),
      },
      {
        path: "equipmentBrand",
        name: "equipmentBrand",
        meta: {
          title: "设备品牌库",
          parentCode: parentCode,
          code: "equipmentBrand",
        },
        component: (resolve) =>
          require(["@/views/standardManagement/equipmentBrand"], resolve),
      },
      {
        path: "classificationAndSub",
        name: "classificationAndSub",
        meta: {
          title: "分级分项验收标准",
          parentCode: parentCode,
          code: "classificationAndSub",
        },
        component: (resolve) =>
          require(["@/views/standardManagement/classificationAndSub"], resolve),
      },
      {
        path: "workInstructionLibrary",
        name: "workInstructionLibrary",
        meta: {
          title: "作业指导书库",
          parentCode: parentCode,
          code: "workInstructionLibrary",
        },
        component: (resolve) =>
          require([
            "@/views/standardManagement/workInstructionLibrary",
          ], resolve),
      },
      {
        path: "operateRiskLibrary",
        name: "operateRiskLibrary",
        meta: {
          title: "作业风险库",
          parentCode: parentCode,
          code: "operateRiskLibrary",
        },
        component: (resolve) =>
          require(["@/views/standardManagement/operateRiskLibrary"], resolve),
      },
      {
        path: "orderAsset",
        name: "orderAsset",
        meta: {
          title: "工单知识库",
          parentCode: parentCode,
          code: "orderAsset",
        },
        component: (resolve) =>
          require(["@/views/standardManagement/orderAsset"], resolve),
      },
    ],
  },
];
